import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { HttpProvider } from '../../providers/http/http';
import { StorageProvider } from '../../providers/storage/storage';
import { DialogProvider } from '../../providers/dialog/dialog';

/**
 * Generated class for the Home page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
	selector: 'page-home',
	templateUrl: 'home.html',
})
export class HomePage {

	constructor(
		public navCtrl: NavController,
		public navParams: NavParams,
		public http: HttpProvider,
		public storage: StorageProvider,
		public dialog: DialogProvider) {
	}

	ionViewDidLoad() {
		console.log('ionViewDidLoad HomePage');
	}

	openApproval() {
		this.navCtrl.push("ApprovalPage");
	}

	openReadoffice() {
		this.navCtrl.push("ReadofficePage");
	}

	openReadnotice() {
		this.navCtrl.push("ReadnoticePage");
	}

	openReadside() {
		this.navCtrl.push("ReadinsidePage");
	}
}